﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Attractions.aspx.cs" EnableViewState="false"
    Inherits="NJL.Web.Attractions" %>

<%@ Import Namespace="Royalsoft.Common" %>
<%@ Register Src="Controls/WUCHeader.ascx" TagName="WUCHeader" TagPrefix="uc1" %>
<%@ Register Src="Controls/WUCFooter.ascx" TagName="WUCFooter" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="/Styles/base1.css" />
    <script type="text/javascript" language="javascript" src="/Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" language="javascript" src="/Scripts/jquery.KinSlideshow-1.1.js"></script>
    <script type="text/javascript" language="javascript">
        function tab(div, css) {
            document.getElementById("hot").style.display = "none";
            document.getElementById("news").style.display = "none";
            document.getElementById("hotcss").className = "";
            document.getElementById("newscss").className = "";
            document.getElementById(css).className = "now";
            document.getElementById(div).style.display = "block";
        }
        function check() {
            var txtkeywords = document.getElementById("txtKeywords").value;
            txtkeywords = $.trim(txtkeywords);
            if (txtkeywords == "") {
                document.getElementById("txtKeywords").focus()
                return false;
            }

        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <uc1:WUCHeader ID="WUCHeader1" runat="server" />
    <!--主要内容-->
    <div class="clearfix w1003" id="content">
        <div class="blank cleanFlex">
        </div>
        <!--位置-->
        <div class="place02">
            <p>
                您现在的位置是：<a href="/">首页</a>>><span>景点名胜</span>
            </p>
        </div>
        <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
        <!--顶部推广-->
        <div class="blank cleanFlex">
        </div>
        <div>
            <div class="w_730 f_left">
                <!--banner-->
                <div class=" box">
                    <div style="height: 240px; overflow: hidden;">
                        <script type="text/javascript">
                            $(function () {
                                $("#KinSlideshow").KinSlideshow({ isHasTitleBar: false, isHasTitleFont: false, moveStyle: "up" });
                            })
                        </script>
                        <div id="KinSlideshow" style="visibility: hidden;">
                            <%
                                for (int i = 0; i < LIST_FLASH.Count; i++)
                                {
                            %>
                            <a href="<%=LIST_FLASH[i].LINK_TO_URL %>" title="<%=LIST_FLASH[i].NEWS_TITLE %>"
                                target="_blank">
                                <img src="<%=GetImageUrl(LIST_FLASH[i].IMAGE_CODE) %>" alt="<%=LIST_FLASH[i].NEWS_TITLE %>"
                                    width="730px" height="240px" /></a>
                            <% 
                                }
                            %>
                        </div>
                    </div>
                </div>
                <!--景点-->
                <div class="blank">
                </div>
                <div class="box">
                    <div class="titleLocal">
                        <span class="f_right"><a href="<%if(WEBSITE_FOCUS_CITY_CODE!="") Response.Write("/"+WEBSITE_FOCUS_CITY_NAME_PINYIN);%>/jdms/tjjd/"
                            target="_blank">查看更多</a></span>
                        <h2>
                            <strong>景点</strong>名胜</h2>
                    </div>
                    <div class="cont">
                        <ul class="imglist">
                            <%
                                for (int i = 0; i < LIST_ATTRACTION.Count; i++)
                                {
                            %>
                            <li style="width: 155px; height: 133px;"><a target="_blank" title="<%=LIST_ATTRACTION[i].ATTRACTION_NAME %>"
                                href="/<%=GetAreaNamePinYin(LIST_ATTRACTION[i].AREA_CODE) %>/jdms/<%=LIST_ATTRACTION[i].ID %>.html">
                                <img width="147px" height="105px" class="picBor" src="<%=(LIST_ATTRACTION[i].IMAGE_CODE!=null && LIST_ATTRACTION[i].IMAGE_CODE!="")?GetImageUrl(LIST_ATTRACTION[i].IMAGE_CODE,"1"):"/Images/nopic.jpg" %>"
                                    alt="<%=LIST_ATTRACTION[i].ATTRACTION_NAME %>" />
                            </a>
                                <p>
                                    <a target="_blank" title="<%=LIST_ATTRACTION[i].ATTRACTION_NAME %>" href="/<%=GetAreaNamePinYin(LIST_ATTRACTION[i].AREA_CODE) %>/jdms/<%=LIST_ATTRACTION[i].ID %>.html">
                                        <%if (LIST_ATTRACTION[i].ATTRACTION_NAME.Length > 12) Response.Write(LIST_ATTRACTION[i].ATTRACTION_NAME.Substring(0, 12) + "..."); else Response.Write(LIST_ATTRACTION[i].ATTRACTION_NAME);%>
                                    </a>
                                </p>
                            </li>
                            <% 
                                }
                            %>
                        </ul>
                        <div class="cleanFlex" style="height: 8px;">
                        </div>
                    </div>
                </div>
            </div>
            <div class="width_260 f_right">
                <!--大热门-->
                <div class="box hotinfo">
                    <div class="titleTab">
                        <ul>
                            <li class="now" id="hotcss" onmousemove="tab('hot','hotcss')"><a href="#">大热门</a></li>
                            <li id="newscss" onmousemove="tab('news','newscss')"><a href="#">焦点关注</a></li>
                        </ul>
                    </div>
                    <div class="cont" id="hot" style="height: 200px;">
                        <p>
                            <% 
                                System.Random random = new Random();
                                for (int i = 0; i < LIST_TAG.Count; i++)
                                {
                                    int iRandom = random.Next(0, 9);
                            %>
                            <a target="_blank" href="/SearchAttractions.aspx?keywords=<%=Server.UrlEncode(LIST_TAG[i].TAG) %>&cc=<%=WEBSITE_FOCUS_CITY_NAME_PINYIN%>"
                                class="tag<%=iRandom.ToString() %>">
                                <%=LIST_TAG[i].TAG%>
                            </a>
                            <%
}
                            %>
                        </p>
                        <!--搜索-->
                        <div class="cleanFlex">
                            <asp:TextBox ID="txtKeywords" runat="server" class="inputsearch" Style="width: 175px;"></asp:TextBox>
                            <asp:Button ID="Button1" runat="server" class="searchBtn02" Text="搜索" OnClick="Button1_Click"
                                OnClientClick="return check()" />
                        </div>
                    </div>
                    <div class="cont" id="news" style="display: none; height: 200px;">
                        <ul class="arrowList">
                            <asp:Repeater runat="server" ID="rptNews">
                                <ItemTemplate>
                                    <li><a href="/jdms/jdgz/<%#Eval("ID") %>.html" title="<%#Eval("NEWS_TITLE") %>" target="_blank">
                                        <%#PageValidate.SqlText(Eval("NEWS_TITLE").ToString(),18)%></a></li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                </div>
                <!--旅游攻略-->
                <div class="blank">
                </div>
                <div class="box">
                    <div class="titlearrow">
                        <span class="f_right"><a href="/xcgc/" target="_blank">查看更多</a></span>
                        <h2>
                            <strong>旅游攻略</strong></h2>
                    </div>
                    <div class="cont">
                        <%
                            for (int i = 0; i < LIST_NEWS.Count; i++)
                            {
                        %>
                        <dl class="imglist">
                            <dd class="greenlink">
                                <strong><a target="_blank" title="<%=LIST_NEWS[i].NEWS_TITLE %>" href="/wanjia/<%=LIST_NEWS[i].NJL_PERSON_ID %>-youji-<%=LIST_NEWS[i].ID %>.html">
                                    <%if (LIST_NEWS[i].NEWS_TITLE != null && LIST_NEWS[i].NEWS_TITLE.Length > 16) Response.Write(LIST_NEWS[i].NEWS_TITLE.Substring(0, 16) + "..."); else Response.Write(LIST_NEWS[i].NEWS_TITLE); %>
                                </a></strong>
                            </dd>
                            <dd>
                                <%if (LIST_NEWS[i].NEWS_SUBJECT_TITLE != null && LIST_NEWS[i].NEWS_SUBJECT_TITLE.Length > 25) Response.Write(LIST_NEWS[i].NEWS_SUBJECT_TITLE.Substring(0, 25) + "..."); else Response.Write(LIST_NEWS[i].NEWS_SUBJECT_TITLE); %></dd>
                        </dl>
                        <% 
                            }
                        %>
                    </div>
                </div>
                <!--最热景点-->
                <div class="blank">
                </div>
                <div class="box">
                    <div class="titlearrow">
                        <h2>
                            <strong>最热景点</strong></h2>
                    </div>
                    <div class="cont">
                        <%
                            for (int i = 0; i < hotatt.Count; i++)
                            {
                        %>
                        <dl class="imglist" style="border: 0; height: 80px;">
                            <dt><a target="_blank" title="<%=LIST_ATTRACTION[i].ATTRACTION_NAME %>" href="/<%=GetAreaNamePinYin(LIST_ATTRACTION[i].AREA_CODE) %>/jdms/<%=LIST_ATTRACTION[i].ID %>.html">
                                <img width="93px" height="69px" src="<%=(LIST_ATTRACTION[i].IMAGE_CODE!=null && LIST_ATTRACTION[i].IMAGE_CODE!="")?GetImageUrl(LIST_ATTRACTION[i].IMAGE_CODE,"2"):"/Images/nopic.jpg" %>"
                                    alt="<%=LIST_ATTRACTION[i].ATTRACTION_NAME %>" class="picBor" />
                            </a></dt>
                            <dd>
                                <strong><a target="_blank" title="<%=LIST_ATTRACTION[i].ATTRACTION_NAME %>" href="/<%=GetAreaNamePinYin(LIST_ATTRACTION[i].AREA_CODE) %>/jdms/<%=LIST_ATTRACTION[i].ID %>.html">
                                    <%if (LIST_ATTRACTION[i].ATTRACTION_NAME.Length > 7) Response.Write(LIST_ATTRACTION[i].ATTRACTION_NAME.Substring(0, 7) + "..."); else Response.Write(LIST_ATTRACTION[i].ATTRACTION_NAME); %>
                                </a></strong>
                            </dd>
                            <dd>
                                <%if (LIST_ATTRACTION[i].ATTRACTION_ADDRESS != null && LIST_ATTRACTION[i].ATTRACTION_ADDRESS != null && LIST_ATTRACTION[i].ATTRACTION_ADDRESS.Length > 18) Response.Write(LIST_ATTRACTION[i].ATTRACTION_ADDRESS.Substring(0, 18) + "..."); else Response.Write(LIST_ATTRACTION[i].ATTRACTION_ADDRESS); %></dd>
                        </dl>
                        <% 
                            }
                        %>
                    </div>
                </div>
            </div>
        </div>
        <!--推荐景点-->
        <div class="blank cleanFlex">
        </div>
        <div class="box cont cleanFlex" style="display: none;">
            <!--左侧-->
            <div class="f_left" style="width: 710px; _width: 730px;">
                <div class="titleArr">
                    <h2>
                        <strong>推荐</strong>景点</h2>
                </div>
                <div>
                </div>
            </div>
            <!--右侧旅游攻略-->
            <div class="f_right width_260">
                <div class="titleArr">
                    <span class="f_right"><a href="/xcgc/" target="_blank">查看更多</a></span>
                    <h2>
                        <strong>旅游</strong>攻略</h2>
                </div>
                <div class="cont">
                </div>
            </div>
            <div class="cleanFlex" style="height: 1px; overflow: hidden;">
            </div>
        </div>
        <!--推荐线路-->
        <div class="blank cleanFlex">
        </div>
        <div class="box cleanFlex cont" style="display: none;">
            <div class="f_left" style="width: 720px;">
                <div class="titleArr">
                    <span class="f_right"><a href="#">查看更多</a></span>
                    <h2>
                        <strong>推荐</strong>线路</h2>
                </div>
                <div class="cont">
                    <ul class="arrowList">
                        <%
                            for (int i = 0; i < LIST_TRIP_LINE.Count; i++)
                            { 
                        %>
                        <li><a target="_blank" title="<%=LIST_TRIP_LINE[i].NEWS_TITLE%>" href="/TripInformation.aspx?id=<%=LIST_TRIP_LINE[i].ID %>">
                            <%=LIST_TRIP_LINE[i].NEWS_TITLE%></a></li>
                        <%
                            }
                        %>
                    </ul>
                </div>
            </div>
            <div class="cleanFlex">
            </div>
        </div>
        <!--周边景点-->
        <div class="box cleanFlex cont m_top_10" style="display: none;">
            <div class="f_left" style="width: 720px; _width: 730px;">
                <div class="titleArr">
                    <%-- <span class="f_right"><a href="#">查看更多</a></span>--%>
                    <h2>
                        <strong>周边</strong>景点</h2>
                </div>
                <div>
                    <ul class="imglist">
                        <%
                            for (int i = 0; i < LIST_ATTRACTION_NEAR.Count; i++)
                            {
                                string pinyin = bllArea.GetModel(LIST_ATTRACTION_NEAR[i].AREA_CODE).AREA_NAME_PINYIN;
                        %>
                        <li style="width: 155px; height: 133px;"><a target="_blank" title="<%=LIST_ATTRACTION_NEAR[i].ATTRACTION_NAME %>"
                            href="/<%=GetAreaNamePinYin(LIST_ATTRACTION_NEAR[i].AREA_CODE) %>/jdms/<%=LIST_ATTRACTION_NEAR[i].ID %>.html">
                            <img width="147px" height="105px" class="picBor" src="<%=(LIST_ATTRACTION_NEAR[i].IMAGE_CODE!=null && LIST_ATTRACTION_NEAR[i].IMAGE_CODE!="")?GetImageUrl(LIST_ATTRACTION_NEAR[i].IMAGE_CODE,"1"):"/Images/nopic.jpg" %>"
                                alt="<%=LIST_ATTRACTION_NEAR[i].ATTRACTION_NAME %>" /></a><p>
                                    <a target="_blank" title="<%=LIST_ATTRACTION_NEAR[i].ATTRACTION_NAME %>" href="/<%=GetAreaNamePinYin(LIST_ATTRACTION_NEAR[i].AREA_CODE) %>/jdms/<%=LIST_ATTRACTION_NEAR[i].ID %>.html">
                                        <%if (LIST_ATTRACTION_NEAR[i].ATTRACTION_NAME.Length > 12) Response.Write(LIST_ATTRACTION_NEAR[i].ATTRACTION_NAME.Substring(0, 12) + "..."); else Response.Write(LIST_ATTRACTION_NEAR[i].ATTRACTION_NAME);%></a></p>
                        </li>
                        <% 
                            }
                        %>
                    </ul>
                </div>
            </div>
            <div class="f_right width_260">
                <div class="titleArr">
                    <%--<span class="f_right" style="display: none"><a href="#">查看更多</a></span>--%>
                    <h2>
                        <strong>最热</strong>景点</h2>
                </div>
                <div class="cont">
                </div>
            </div>
            <div class="cleanFlex" style="height: 1px; overflow: hidden;">
            </div>
        </div>
        <div class="blank cleanFlex">
        </div>
        <!--左侧-->
        <div class="box cont cleanFlex m_top_10" style="display: none;">
            <!--闹事商家-->
            <div class="f_left" style="width: 720px; _width: 730px; height: 330px;">
                <div class="titleArr">
                    <span class="f_right"><a href="/njxy/" target="_blank">查看更多</a></span>
                    <h2>
                        <strong>闹市</strong>商家</h2>
                </div>
                <div class="cleanFlex">
                    <ul class="imglist">
                        <%
                            for (int i = 0; i < LIST_COMPANY_1.Count; i++)
                            {
                        %>
                        <li style="width: 155px; height: 133px;"><a target="_blank" title="<%=LIST_COMPANY_1[i].COMPANY_NAME %>"
                            href="/shangpu/<%=LIST_COMPANY_1[i].ID %>-index.html">
                            <img width="147px" height="105px" style="display: block;" class="picBor" src="<%=GetImageUrl(LIST_COMPANY_1[i].IMAGE_CODE,"1") %>"
                                alt="<%=LIST_COMPANY_1[i].COMPANY_NAME %>" /></a><p>
                                    <a target="_blank" title="<%=LIST_COMPANY_1[i].COMPANY_NAME %>" href="/shangpu/<%=LIST_COMPANY_1[i].ID %>-index.html">
                                        <%if (LIST_COMPANY_1[i].COMPANY_NAME.Length > 8) Response.Write(LIST_COMPANY_1[i].COMPANY_NAME.Substring(0, 8) + "..."); else Response.Write(LIST_COMPANY_1[i].COMPANY_NAME);%></a></p>
                        </li>
                        <% 
                            }
                        %>
                        <%
                            for (int i = 0; i < LIST_COMPANY_2.Count; i++)
                            {
                        %>
                        <li style="width: 155px; height: 133px;"><a target="_blank" title="<%=LIST_COMPANY_2[i].COMPANY_NAME %>"
                            href="/shangpu/<%=LIST_COMPANY_2[i].ID %>-index.html">
                            <img width="147px" height="105px" style="display: block;" class="picBor" src="<%=GetImageUrl(LIST_COMPANY_2[i].IMAGE_CODE,"1") %>"
                                alt="<%=LIST_COMPANY_2[i].COMPANY_NAME %>" /></a><p>
                                    <a target="_blank" title="<%=LIST_COMPANY_2[i].COMPANY_NAME %>" href="/shangpu/<%=LIST_COMPANY_2[i].ID %>-index.html">
                                        <%if (LIST_COMPANY_2[i].COMPANY_NAME.Length > 8) Response.Write(LIST_COMPANY_2[i].COMPANY_NAME.Substring(0, 8) + "..."); else Response.Write(LIST_COMPANY_2[i].COMPANY_NAME);%></a></p>
                        </li>
                        <% 
                            }
                        %>
                    </ul>
                </div>
            </div>
            <!--特产推荐-->
            <div class="width_250 f_right">
                <div class="titleArr">
                    <span class="f_right"><a href="/dfts/" target="_blank">查看更多</a></span>
                    <h2>
                        <strong>特产</strong>推荐</h2>
                </div>
                <div class="cont">
                    <%
                        for (int i = 0; i < LIST_LOCAL_COLOR.Count; i++)
                        {
                    %>
                    <dl class="imglist" style="border: 0; height: 72px;">
                        <dt><a target="_blank" title="<%=LIST_LOCAL_COLOR[i].NEWS_TITLE %>" href="/<%=GetAreaNamePinYin(LIST_LOCAL_COLOR[i].AREA_CODE) %>/dfts/<%=LIST_LOCAL_COLOR[i].ID %>.html">
                            <img width="93px" height="69px" src="<%=(LIST_LOCAL_COLOR[i].IMAGE_CODE!=null && LIST_LOCAL_COLOR[i].IMAGE_CODE!="")?GetImageUrl(LIST_LOCAL_COLOR[i].IMAGE_CODE,"2"):"/Images/nopic.jpg" %>"
                                alt="<%=LIST_LOCAL_COLOR[i].NEWS_TITLE %>" class="picBor" />
                        </a></dt>
                        <dd>
                            <strong><a target="_blank" title="<%=LIST_LOCAL_COLOR[i].NEWS_TITLE %>" href="/<%=GetAreaNamePinYin(LIST_LOCAL_COLOR[i].AREA_CODE) %>/dfts/<%=LIST_LOCAL_COLOR[i].ID %>.html">
                                <%if (LIST_LOCAL_COLOR[i].NEWS_TITLE.Length > 7) Response.Write(LIST_LOCAL_COLOR[i].NEWS_TITLE.Substring(0, 7) + "..."); else Response.Write(LIST_LOCAL_COLOR[i].NEWS_TITLE); %>
                            </a></strong>
                        </dd>
                        <dd>
                            <%if (LIST_LOCAL_COLOR[i].NEWS_SUBJECT_TITLE.Length > 18) Response.Write(LIST_LOCAL_COLOR[i].NEWS_SUBJECT_TITLE.Substring(0, 18) + "..."); else Response.Write(LIST_LOCAL_COLOR[i].NEWS_SUBJECT_TITLE); %></dd>
                    </dl>
                    <% 
                        }
                    %>
                </div>
            </div>
            <div class="cleanFlex">
            </div>
        </div>
        <div class="m_top_10" style="display: none;">
            <!--游记分享-->
            <div class="box cont f_left width_260" style="height: 185px;">
                <div class="titleArr">
                    <%-- <span class="f_right"><a href="/xcgc/">查看更多</a></span>--%>
                    <h2>
                        最新服务</h2>
                </div>
                <div>
                    <div class="pingAtt">
                        <marquee direction="up" scrollamount="2" onmouseover="this.stop()" onmouseout="this.start()">
                        <ul class="imglist imgList05">
                    <%
                        for (int i = 0; i < LIST_SERVICE_HOT.Count; i++)
                        {
                    %>
                            <li>
                                <a target="_blank" title="<%=LIST_SERVICE_HOT[i].SERVICE_NAME %>" href="/shangpu/<%=LIST_SERVICE_HOT[i].NJL_COMPANY_ID %>-fuwu-<%=LIST_SERVICE_HOT[i].ID %>.html"><img src="<%=GetImageUrl(LIST_SERVICE_HOT[i].IMAGE_CODE,"4") %>" width="107px" height="77px" class="picBor" alt="<%=LIST_SERVICE_HOT[i].SERVICE_NAME %>" /></a>
                                <p><a target="_blank" title="<%=LIST_SERVICE_HOT[i].SERVICE_NAME %>" href="/shangpu/<%=LIST_SERVICE_HOT[i].NJL_COMPANY_ID %>-fuwu-<%=LIST_SERVICE_HOT[i].ID %>.html"><%if (LIST_SERVICE_HOT[i].SERVICE_NAME.Length > 8) Response.Write(LIST_SERVICE_HOT[i].SERVICE_NAME.Substring(0, 8) + "..."); else Response.Write(LIST_SERVICE_HOT[i].SERVICE_NAME); %></a></p>
                            </li>
                    <% 
                        }
                    %>
                        </ul></marquee>
                    </div>
                </div>
            </div>
            <!--右侧-->
            <div class="width_720 f_right">
                <!--供应、转让-->
                <div class="box">
                    <div class="title">
                        <%--<span><a href="#">查看更多</a></span>--%>
                        <h2>
                            周边农家</h2>
                    </div>
                    <div class="cont m_top_10">
                        <ul class="imglist imglistF">
                            <%
                                for (int i = 0; i < LIST_COMPANY_NEAR.Count; i++)
                                {
                            %>
                            <li style="width: 155px; height: 133px;"><a target="_blank" title="<%=LIST_COMPANY_NEAR[i].COMPANY_NAME %>"
                                href="/shangpu/<%=LIST_COMPANY_NEAR[i].ID %>-index.html">
                                <img src="<%=GetImageUrl(LIST_COMPANY_NEAR[i].IMAGE_CODE,"1") %>" alt="<%=LIST_COMPANY_NEAR[i].COMPANY_NAME %>"
                                    width="147px" height="105px" class="picBor" />
                            </a>
                                <p>
                                    <a target="_blank" title="<%=LIST_COMPANY_NEAR[i].COMPANY_NAME %>" href="/shangpu/<%=LIST_COMPANY_NEAR[i].ID %>-index.html">
                                        <%if (LIST_COMPANY_NEAR[i].COMPANY_NAME.Length > 10) Response.Write(LIST_COMPANY_NEAR[i].COMPANY_NAME.Substring(0, 10) + "..."); else Response.Write(LIST_COMPANY_NEAR[i].COMPANY_NAME); %>
                                    </a>
                                </p>
                            </li>
                            <% 
                                }
                            %>
                        </ul>
                        <div class="cleanFlex" style="height: 7px;">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="blank cleanFlex">
        </div>
    </div>
    <uc2:WUCFooter ID="WUCFooter1" runat="server" />
    </form>
</body>
</html>
